package com.asisto.model

class Empleado {
    String nombre
    byte[] foto
    Date lastUpdated
    Date dateCreated

    static hasMany = [tareas:Tarea]
    static mappedBy = [tareas:'empleado']

    static mapping = {
        table 'empleados'
        id column: 'idempleado'
    }

    static constraints = {
        nombre(blank:false,maxSize:100)
        foto(nullable:true,maxSize:1024*200)
        lastUpdated(editable:false)
        dateCreated(editable:false)

    }
}
